package charazay.tool.misc;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

import charazay.tool.managers.files.FileManager;

public class Session {
	public static int teamID;
	public static String username;
	public static String password;
	
	public static String language;
	public static String country;
	
	public static void initSession() {
		Properties properties = new Properties();
		try {
		    properties.load(new FileInputStream(FileManager.CONF_FILE));
		} catch (IOException e) {
		}
		language = properties.getProperty("language");
		country = properties.getProperty("country");
		username = properties.getProperty("username",null);
		password = properties.getProperty("password",null);
		
	}
	
	private void initFolders() {
		
	}
	
	//faire une methode update properties !
}
